package com.corona.game;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.ParticleEffect;
import com.corona.Game;

/* compiled from: Battle.java */
/* loaded from: pokewilds.jar:com/pkmngen/game/VolcaronaParticleEffect2.class */
class VolcaronaParticleEffect2 extends Action {
    public Action.Layer layer = Action.Layer.gui_106;
    ParticleEffect fireEffect = new ParticleEffect();
    ParticleEffect fireEffect2 = new ParticleEffect();
    public int timer = 0;

    public VolcaronaParticleEffect2(Action nextAction) {
        super(new Object[0]);
        this.nextAction = nextAction;
        this.fireEffect.load(Gdx.files.internal("fire1.p"), Gdx.files.internal(""));
        this.fireEffect2.load(Gdx.files.internal("fire1-flipped.p"), Gdx.files.internal(""));
    }

    @Override // com.corona.game.Action
    public void firstStep(Game game) {
        this.fireEffect.setPosition(-40.0f, 48.0f);
        this.fireEffect.scaleEffect(6.0f);
        this.fireEffect.start();
        this.fireEffect2.setPosition(40.0f, 48.0f);
        this.fireEffect2.scaleEffect(6.0f);
        this.fireEffect2.start();
    }

    @Override // com.corona.game.Action
    public void step(Game game) {
        this.fireEffect.update(Gdx.graphics.getDeltaTime() * 0.75f);
        this.fireEffect2.update(Gdx.graphics.getDeltaTime() * 0.75f);
        this.fireEffect.draw(game.uiBatch);
        this.fireEffect2.draw(game.uiBatch);
        this.timer = (this.timer + 1) % 2;
    }
}
